package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 数据统计实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_data_statistics")
@Schema(name = "YunkeDataStatistics", description = "数据统计实体")
public class YunkeDataStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "统计ID")
    private Long id;

    @Schema(description = "统计类型（1用户 2搭子 3服务 4订单 5财务 6分销）")
    private Integer statisticsType;

    @Schema(description = "统计维度（1日 2周 3月 4年）")
    private Integer dimension;

    @Schema(description = "统计日期")
    private String statisticsDate;

    @Schema(description = "新增数量")
    private Long newCount;

    @Schema(description = "活跃数量")
    private Long activeCount;

    @Schema(description = "总数量")
    private Long totalCount;

    @Schema(description = "金额")
    private BigDecimal amount;

    @Schema(description = "收入金额")
    private BigDecimal incomeAmount;

    @Schema(description = "支出金额")
    private BigDecimal expenseAmount;

    @Schema(description = "佣金金额")
    private BigDecimal commissionAmount;

    @Schema(description = "转化率")
    private BigDecimal conversionRate;

    @Schema(description = "增长率")
    private BigDecimal growthRate;

    @Schema(description = "扩展数据（JSON格式）")
    private String extraData;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 